package com.my.test.thread.concurrent;

public class TestJoin extends Thread{

    @Override
    public void run(){

        try {
            Thread.sleep(4000);
            System.out.println("Hh");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) throws InterruptedException {

        Thread t1 = new TestJoin();
        Thread t2 = new TestJoin();
        t1.start();
        t2.start();
        t1.join();
        t2.join();
        System.out.println("==============over===============");
    }
}
